package com.example.demo.entity.responseJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @author : 杨丽辉
 * @date : 2021/3/4 10:45
 * @description:
 */
@ApiModel("创作中心查询书籍基本信息返回JSON类")
public class ABookBaseInfoRes {
    /**
     *主键
     * 书籍id
     * isnull 1
     */
    @ApiModelProperty(value="书籍id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String booksId;

    /**
     * 书籍名称
     * isnull 0
     */        @ApiModelProperty(value="书籍名称", position=2)
    private String bookName;
    /**
     * 书籍信息更新时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value="书籍信息更新时间",position=6)
    private LocalDateTime bookIupdateTime;
    /**
     * 作者id
     * isnull 0
     */        @ApiModelProperty(value="作者id",position=7)
    private String authorId;
    /**
     * 书籍封面图片链接
     * isnull 0
     */        @ApiModelProperty(value="书籍封面图片链接",position=8)
    private String bookPic;
    /**
     * 最新更新章节名称
     * isnull 0
     */        @ApiModelProperty(value="章节名称",position=2)
    private String chapterName;
    /**
     * 最新章节更新时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value="章节更新时间",position=6)
    private LocalDateTime updateTime;


    public String getBooksId() {
        return booksId;
    }

    public void setBooksId(String booksId) {
        this.booksId = booksId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public LocalDateTime getBookIupdateTime() {
        return bookIupdateTime;
    }

    public void setBookIupdateTime(LocalDateTime bookIupdateTime) {
        this.bookIupdateTime = bookIupdateTime;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getBookPic() {
        return bookPic;
    }

    public void setBookPic(String bookPic) {
        this.bookPic = bookPic;
    }

    public String getChapterName() {
        return chapterName;
    }

    public void setChapterName(String chapterName) {
        this.chapterName = chapterName;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
